Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
exact-segment-intersect
Advanced tools
Exactly computes the intersection of a pair of line segments as a homogeneous vector of non-overlapping increasing sequences.
var exactIntersect = require("exact-segment-intersect")
var a = [-1,0]
var b = [1,0]
var c = [0,-1]
var d = [0,1]
console.log(exactIntersect(a, b, c, d))
Output:
[ [0], [0], [1] ]
npm install exact-segment-intersect
require("exact-segment-intersect")(a,b,c,d)
Exactly computes the intersection of the line segments [a,b]
and [c,d]
a,b
are the vertices of the first segmentc,d
are the vertices of the second segmentReturns A homogeneous 3 vector encoding the exact point of intersection
(c) 2014 Mikola Lysenko. MIT License
FAQs
Exactly constructs the intersection of two line segments
The npm package exact-segment-intersect receives a total of 1,708 weekly downloads. As such, exact-segment-intersect popularity was classified as popular.
We found that exact-segment-intersect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.